package main.java.tmi.popup.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import main.java.tmi.customer.service.CustomerVO;
import main.java.tmi.order.service.OrderVO;
import main.java.tmi.packing.service.PackingVO;
import main.java.tmi.popup.service.PopupService;
import main.java.tmi.popup.service.PopupVO;
import main.java.tmi.returnProduct.service.ReturnProductVO;
import main.java.tmi.stockOut.service.StockOutVO;

import org.springframework.stereotype.Service;

/**
 * 팝업 처리하는 서비스 구현 클래스
 *
 * @author min™
 * @since 2011. 07. 24
 *
 */
@Service
public class PopupServiceImpl implements PopupService {

	
	@Resource(name = "popupDAO")
	protected PopupDAO popupDAO;

	/*CustomerPop*/
	
	public List<CustomerVO> getCustomerPopView(Map<String,String> param) throws SQLException {
		
		return popupDAO.getCustomerPopView(param);
	}	
	
	public int getCustomerPopCount(Map<String,String> param) throws SQLException {
		
		return popupDAO.getCustomerPopCount(param);
	}
	
	/*ProductPop*/
	
	public List<CustomerVO> getProductPopView(Map<String,String> param) throws SQLException {
		
		return popupDAO.getProductPopView(param);
	}	
	
	public int getProductPopCount(Map<String,String> param) throws SQLException {
		
		return popupDAO.getProductPopCount(param);
	} 
	

	/*orderNum*/
	
	public int getOrderNumListCount(Map<String,String> param) throws SQLException {
        
        return popupDAO.getOrderNumListCount(param);
    } 

    public List<OrderVO> getOrderNumList(Map<String,String> param) throws SQLException {
        
        return popupDAO.getOrderNumList(param);
    }   
    
    
    
	/*packing*/
	
	public List<PackingVO> getPackingNumList(Map<String, String> param) throws SQLException {
        
        return popupDAO.getPackingNumList(param);
    }


	public int getPackingNumListCount(Map<String, String> param) throws SQLException {
		return popupDAO.getPackingNumListCount(param);
	}


	/*Mawb/Hawb*/
	
	public int getMawbHawbNumListCount(Map<String,String> param) throws SQLException {
        
        return popupDAO.getMawbHawbNumListCount(param);
    } 

	public List<PopupVO> getMawbHawbNumList(Map<String, String> param) throws SQLException {
		return popupDAO.getMawbHawbNumList(param);
	}
	
	/*StockOutPop*/
	
	public List<StockOutVO> getStockOutPopView(Map<String,String> param) throws SQLException {
		
		return popupDAO.getStockOutPopView(param);
	}	
	
	public int getStockOutPopCount(Map<String,String> param) throws SQLException {
		
		return popupDAO.getStockOutPopCount(param);
	}
	
	/*StockOutNo Pop*/
	
	public List<StockOutVO> getStockOutNoPopView(Map<String,String> param) throws SQLException {
		
		return popupDAO.getStockOutNoPopView(param);
	}	
	
	public int getStockOutNoPopCount(Map<String,String> param) throws SQLException {
		
		return popupDAO.getStockOutNoPopCount(param);
	}
	
	/*ReturnProduc Pop*/
	
	public List<ReturnProductVO> getReturnProducPopView(Map<String,String> param) throws SQLException {
		
		return popupDAO.getReturnProducPopView(param);
	}	
	
	public int getReturnProducPopCount(Map<String,String> param) throws SQLException {
		
		return popupDAO.getReturnProducPopCount(param);
	}
	
	/*ReturnNo Pop*/
	
	public List<ReturnProductVO> getReturnNoPopView(Map<String,String> param) throws SQLException {
		
		return popupDAO.getReturnNoPopView(param);
	}	
	
	public int getReturnNoPopCount(Map<String,String> param) throws SQLException {
		
		return popupDAO.getReturnNoPopCount(param);
	}
}
